package qrcode

import (
	"image"
	"log"

	"github.com/skip2/go-qrcode"
)

func Generate(content string, size int) image.Image {
	qr, err := qrcode.New(content, qrcode.Medium)
	if err != nil {
		log.Fatal(err)
	}
	return qr.Image(size)
}
